import {
  Package_Name,
  // API
  Result_Name,
  ResultUtil_Name,
  // 类型
  ResultType_Name,
  GenResultType_Name,
  GenSuccessResultType_Name,
  GenFailResultType_Name
} from '@xtail/result'
import { AutoImportUtil } from '@xtail/unplugin'

export const XTailResultAutoImports = () =>
  AutoImportUtil.genAutoImports(Package_Name, [Result_Name, ResultUtil_Name])

export type XTailResultAutoImportsType = typeof XTailResultAutoImports

export const XTailResultTypeAutoImports = () =>
  AutoImportUtil.genTypeAutoImports(Package_Name, [
    ResultType_Name,
    GenResultType_Name,
    GenSuccessResultType_Name,
    GenFailResultType_Name
  ])

export type XTailResultTypeAutoImportsType = typeof XTailResultTypeAutoImports
